/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package operacjeuzytkownikow;

/**
 *
 * @author Wlodek
 */

public abstract class UserDAOFactory {

  // List of DAO types supported by the factory
  public static final int TEST = 1;

  public abstract UserDAO getUserDAO();

  public static UserDAOFactory getUserDAOFactory(
      int ktoraFabryka) {

    switch (ktoraFabryka) {
      case TEST:
          return new TestUserDAOFactory();
       
      default           :
          return null;
    }
  }
}